<template>
  <div class="num-card-box">
    <div class="num-card-box-left">
      <img class="card-img" src="../../assets/images/icon-default.png">
      <span class="card-title">{{ title }}</span>
    </div>
    <span class="card-num">{{ num }}</span>
  </div>
</template>

<script>
export default {
  name: 'index',
  props: {
    src: {
      type: String,
      default: ''
    },
    num: {
      type: [String, Number],
      default: '100'
    },
    title: {
      type: String,
      default: '数据标准'
    }
  }
}
</script>

<style scoped lang="scss">
.num-card-box {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-sizing: border-box;
  border-radius: 4px;
  background-color: #F8F8F8;

  .num-card-box-left {
    .card-img {
      width: 40px;
      height: 40px;
    }

    .card-title {
      font-size: 14px;
      color: #333333;
      margin-left: 10px;
    }
  }

  .card-num {
    font-weight: bold;
    font-size: 20px;
    color: #333333;
  }
}
</style>
